import { Router } from 'express'
import authRoutes from './auth'
import workflowRoutes from './workflow'
import userRoutes from './user'
import { auth } from '../middleware/auth'

const router = Router()

// 公开路由
router.use('/auth', authRoutes)

// 需要认证的路由
router.use('/workflows', auth, workflowRoutes)
router.use('/users', auth, userRoutes)

export default router 